<template>
	<view class="template-build tn-safe-area-inset-bottom">
    
    <view class="tn-safe-area-inset-bottom" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
      
	  <view class="justify-content-item tn-margin tn-text-bold tn-text-xl">委托公司</view>
      <view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;color:#AAAAAA;">
      	<input placeholder="" name="input" :value="formData.businessName" disabled></input>
      </view>
	  
	  <view class="justify-content-item tn-margin tn-text-bold tn-text-xl">任务类型</view>
	  <view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;color:#AAAAAA;">
	  	<input placeholder="" name="input" :value="formData.taskType" disabled></input>
	  </view>
	  
	  <view class="justify-content-item tn-margin tn-text-bold tn-text-xl">发布时间</view>
	  <view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;color:#AAAAAA;">
	  	<input placeholder="" name="input" :value="formData.taskDate" disabled></input>
	  </view>
	  
	  <view class="justify-content-item tn-margin tn-text-bold tn-text-xl">任务说明</view>
      <view class="tn-margin tn-bg-gray--light tn-padding" style="border-radius: 10rpx;color:#AAAAAA;">
        <textarea style="height: 120px;" maxlength="300" placeholder="" :value="formData.taskDesp" disabled></textarea>
      </view>
      
    </view>
    
    <!-- 悬浮按钮-->
    <view class="tn-flex tn-footerfixed">
      <view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
        <tn-button shape="round" backgroundColor="#00aaff" padding="40rpx 0" width="60%" shadow fontBold>
          <text class="tn-color-black">领取任务</text>
        </tn-button>
      </view>
    </view>
	  
	</view>
</template>

<script>
  import template_page_mixin from '@/libs/mixin/template_page_mixin.js'
	export default {
    name: 'TemplateBuild',
    mixins: [template_page_mixin],
		data() {
			return {
				// action: '',
				formData: {
				  businessName: '123',
				  taskType: '',
				  taskDate: '',
				  taskDesp: '　　因委托方业务发展，现需要若干有相关服务经验或能力的自由职业者提供XXXX，具体要求和费用由委托方公布。'
				},
				wxCode: '',
				wxOpenid: '',
				wxSessionKey: '',
			}
		},
		onLoad() {
				
		},
		methods: {
						
			
			// 跳转
			tn(e) {
				uni.navigateTo({
					url: e,
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.template-edit{
	}
  
  /* 底部悬浮按钮 start*/
  .tn-tabbar-height {
  	min-height: 100rpx;
  	height: calc(120rpx + env(safe-area-inset-bottom) / 2);
  }
  .tn-footerfixed {
    position: fixed;
    width: 100%;
    bottom: calc(30rpx + env(safe-area-inset-bottom));
    z-index: 1024;
    box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
    
  }
  /* 底部悬浮按钮 end*/
  
  /* 标签内容 start*/
  .tn-tag-content {
    &__item {
      display: inline-block;
      line-height: 45rpx;
      padding: 10rpx 30rpx;
      margin: 20rpx 20rpx 5rpx 0rpx;
      
      &--prefix {
        padding-right: 10rpx;
      }  
    }
  }
  /* 标签内容 end*/
</style>